INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})

message("CMAKE_CURRENT_SOURCE_DIR=${CMAKE_CURRENT_SOURCE_DIR}")
get_filename_component(parent_dir "${CMAKE_CURRENT_SOURCE_DIR}" PATH)
message("parent_dir111=${parent_dir}")
string(REPLACE "${parent_dir}" "" var_exe "${CMAKE_CURRENT_SOURCE_DIR}")
string(REPLACE "/" "" var_exe "${var_exe}")
message("var_exe=${var_exe}")

set(vs_tree_reduce_dir ${PROJECT_SOURCE_DIR})
file(GLOB_RECURSE var_src_files "*.cpp" "*.hpp" "*.h")

group_by_dir(${vs_tree_reduce_dir} ${var_src_files})

# SET(LINK_LIBS ${LINK_LIB_COMMON})

ADD_EXECUTABLE(${var_exe} ${var_src_files})
# TARGET_LINK_LIBRARIES(${LINK_LIBS})

